package com.tvalition.annoation;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

@Inherited
@Target(value = {ElementType.FIELD, ElementType.CONSTRUCTOR, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = {ValidtionConstraint.class})
public @interface ValidList {

    Class className();

    Class<?>[] groups() default {};

    String message() default "{javax.validation.constraints.NotNull.message}";

    Class<? extends Payload>[] payload() default {};
}
